/*
 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
 * All rights reserved.
 *
 * This software is a confidential and proprietary information of Samsung
 * Electronics, Inc. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with the terms
 * of the license agreement you entered into with Samsung Electronics.
 */

package br.com.poc.pitagorasnumero.event;

import java.io.Serializable;

/**
 * @author diego.freitas
 * 
 */
public class Event<T> implements Serializable {

	/**
	 * Serial because its implements Serializable
	 */
	private static final long serialVersionUID = -8071191066737602303L;

	/**
	 * Type of result
	 */
	public T result;

	/**
	 * Source of Event
	 */
	public String source;

	/**
	 * @param result
	 */
	public Event(final T result) {
		super();
		this.result = result;
	}

	/**
	 * COnstructor
	 * 
	 * @param source
	 */
	public Event(final String source) {
		super();
		this.source = source;
	}

	/**
	 * Constructor
	 * 
	 * @param result
	 * @param source
	 */
	public Event(final T result, final String source) {
		this.result = result;
		this.source = source;
	}

	/**
	 * Constructor
	 */
	public Event() {
		super();
	}

}